package java67_adv8;

public class Thread1 extends Thread {
	public Thread1(String n) {
		super(n);
	}

	@Override
	public void run() {
		for (int i = 1; i <= 20; i++) {
			System.out.println(super.getName() + " print " + i);
		}
	}

	public static void main(String[] args) {
		Thread1 t1 = new Thread1("线程1");
		Thread1 t2 = new Thread1("线程2");
		Thread1 t3 = new Thread1("线程3");
		t1.start();
		t2.start();
		t3.start();
	}
}
